# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
pkgname=stow
pkgver=2.3.1
pkgrel=0
pkgdesc="Manage installation of multiple softwares in the same directory tree"
url="https://www.gnu.org/software/stow/"
arch="noarch"
license="GPL-3.0-or-later"
depends="perl"
makedepends="perl-test-output"
checkdepends="perl-io-stringy"
subpackages="$pkgname-doc"
source="https://ftp.gnu.org/gnu/stow/stow-$pkgver.tar.bz2"

build() {
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--with-pmdir=/usr/lib/perl5/vendor_perl
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	rm "$pkgdir"/usr/share/doc/stow/manual.pdf
	rm "$pkgdir"/usr/share/doc/stow/version.texi
}

sha512sums="3d6cec3d50e2dc0ffa92646c45015ced3fca32cef9dd24418fada3fc2e4472a1f335877debb3a1284812aef281a432925c3a3e7afa112d92f127facd3150079c  stow-2.3.1.tar.bz2"
